  -- prevod cisel do spravneho formatu s koncovkou
  local numFormat = function(v)
    if v > 1E9 then
      return (floor((v/1E9)*10)/10).."b"
    elseif v > 1E6 then
      return (floor((v/1E6)*10)/10).."M"
    elseif v > 1E3 then
      return (floor((v/1E3)*10)/10).."k"
    else
      return v
    end  
  end
  
  --------------------------------------------------------------
  --- Player tags                                            ---
  --------------------------------------------------------------
  oUF.Tags["player_name"] = function(unit)
	local name = UnitName(unit)
	
	if not UnitIsConnected(unit) then
		return "|cff999999"..name.."<Offline>|r"
	end  
	if(UnitIsDead(unit)) then 
		return "|cff999999"..name.."<Dead>|r"
	end
	if(UnitIsGhost(unit)) then 
		return "|cff999999"..name.."<Ghost>|r"
	end
	if(UnitIsAFK(unit)) then 
		return "|cff999999"..name.."<AFK>|r"
	end
	if(UnitIsDND(unit)) then 
		return "|cff999999"..name.."<DND>|r"
	end
	return name
end
oUF.TagEvents["player_name"] = "PLAYER_FLAGS_CHANGED"